FROM openjdk:8-jdk-alpine

RUN mkdir -p /opt/app

#VOLUME /tmp

ADD target/fsnbigdata-1.0.0.BUILD-SNAPSHOT-exec.jar app.jar

EXPOSE 8080

ENV JAVA_OPTS=""
ENTRYPOINT [ "sh", "-c", "java $JAVA_OPTS -Djava.security.egd=file:/dev/./urandom -jar /app.jar" ]
